//声明一个带有重复数字的数组，然后将数组排重
//声明的数组为：var arr=[5,4,26,9,4,8,5,14];


let set = new Set([5, 4, 26, 9, 4, 8, 5, 14])
let arr = [...set]

for (let i = 0; i < arr.length; i++) {
    document.write(arr[i] + ' ')
}